package com.tuanzi.loan.business.service.family;

import com.tuanzi.loan.business.entity.family.ClassificationInfo;
import com.tuanzi.loan.business.repository.family.ClassificationRepository;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.family.ClassificationInfoSearchRequest;
import com.tuanzi.loan.vo.response.family.ClassificationInfoListResponse;
import com.tuanzi.loan.vo.view.family.ClassificationView;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ClassificationService {

    Page<ClassificationInfoListResponse> list(PageSearcher<ClassificationInfoSearchRequest> pageSearcher);

    ClassificationView getClassificationById(long id);

    Long getLastId();

    Integer getBiggestSort();

    void saveClassification(ClassificationInfoSearchRequest request) throws Exception;

    void deleteClassifById(long id);

    List<ClassificationInfo> loadClassifications();

    ClassificationRepository getJpaRepository();
}
